﻿#include "imagethread.h"
#include "CameraTUCAM_private.h"

namespace Qly
{
ImageThread::ImageThread(CameraTUCAM_p *pCamera)
{
    m_pCamera = pCamera;
}

void ImageThread::start()
{
    m_isLive = true;
    QThread::start(QThread::InheritPriority);
}

void ImageThread::stop()
{
    m_isLive = false;
}

void ImageThread::run()
{
    while(m_isLive)
    {
        m_pCamera->fetchImageData();
    }
}
}


